﻿using BCCommon;
using BCDto.OA.PageBusiness.PageBusinessMappingDepartment;
using System;
using System.Collections.Generic;
using System.Text;

namespace BCService.OA.PageBusiness.PageBusinessMappingDepartment
{
    /// <summary>
    /// OA系统页面业务映射部门
    /// </summary>
	public interface IPageBusinessMappingDepartmentService
    {
        #region  成员方法
        /// <summary>
        /// 是否存在此记录
        /// </summary>
        /// <param name="pageBusinessMappingDepartmentId">OA系统页面业务映射部门Id</param>
        bool Exists(long pageBusinessMappingDepartmentId);
        /// <summary>
        /// 添加OA系统页面业务映射部门
        /// </summary>
        /// <param name="requestDto">OA系统页面业务映射部门信息</param>
        PageBusinessMappingDepartmentDto Add(PageBusinessMappingDepartmentRequestDto requestDto);
        /// <summary>
        /// 更新OA系统页面业务映射部门
        /// </summary>
        /// <param name="putDto">OA系统页面业务映射部门信息</param>
        PageBusinessMappingDepartmentDto Update(PageBusinessMappingDepartmentPutDto putDto);
        /// <summary>
        /// 删除OA系统页面业务映射部门
        /// </summary>
        /// <param name="pageBusinessMappingDepartmentId">OA系统页面业务映射部门Id</param>
        bool Delete(long pageBusinessMappingDepartmentId);
        /// <summary>
        /// 获取OA系统页面业务映射部门
        /// </summary>
        /// <param name="pageBusinessMappingDepartmentId">OA系统页面业务映射部门Id</param>
        PageBusinessMappingDepartmentDto GetEntity(long pageBusinessMappingDepartmentId);
        /// <summary>
        /// 获取OA系统页面业务映射部门列表
        /// </summary>
        /// <param name="companyId">公司Id</param>
        IEnumerable<PageBusinessMappingDepartmentDto> GetList(int companyId);
        /// <summary>
        /// 获取OA系统页面业务映射部门列表
        /// </summary>
        /// <param name="companyId">公司Id</param>
        /// <param name="pageBusinessConfigId">页面业务配置Id</param>
        /// <returns></returns>
        IEnumerable<PageBusinessMappingDepartmentDto> GetList(int companyId, long pageBusinessConfigId);
        /// <summary>
        /// 获取OA系统页面业务映射部门分页列表
        /// </summary>
        /// <param name="pageBusinessConfigId">页面业务配置Id</param>
        /// <param name="companyId">公司Id</param>
        /// <param name="pageBusinessName">页面业务名称</param>
        /// <param name="start">开始时间</param>
        /// <param name="end">结束时间</param>
        /// <param name="pageIndex">当前页码</param>
        /// <param name="pageSize">OA系统页面业务映射部门每页数据条数</param>
        PageableList<PageBusinessMappingDepartmentDto> Query(int companyId, long pageBusinessConfigId,string pageBusinessName, DateTime? start, DateTime? end, int pageIndex, int pageSize);
        #endregion  成员方法
    }
}
